Get the MAIL FROM from the From: header if no domain is configured
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 9 Feb 2012 22:42:12 +0000 (23:42 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 9 Feb 2012 22:42:12 +0000 (23:42 +0100)
commitdc10703fc1c51c02baa4ac615e402b7eddfda6c4
treed0a877d2fd45f274de085c737939f48a19456bc4
parente43f7816da9d42db32ec7a83cae2099d4bdf0e77
Get the MAIL FROM from the From: header if no domain is configured

* mail/smtpmail.el (smtpmail-user-mail-address): New function.
(smtpmail-via-smtp): Use it, or fall back on the From address.
(smtpmail-send-it): Ditto.
lisp/ChangeLog
lisp/mail/smtpmail.el